﻿<UserControl x:Name="userControl" x:Class="PPFinance.UI.ExpenditureCategory.EcEditPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="200" d:DesignWidth="300" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
    <UserControl.Resources>

    </UserControl.Resources>
    <UserControl.Projection>
        <PlaneProjection/>
    </UserControl.Projection>
    <Border Margin="5" Padding="5,5,5,7" CornerRadius="6" BorderThickness="1" x:Name="BorderContainer">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0" To="Switch">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="userControl">
                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="90"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="180"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="LayoutRoot">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.48" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:0.52" Value="180"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualTransition>
                    <VisualTransition/>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="Switch"/>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <Grid x:Name="LayoutRoot" >
            <Grid.Projection>
                <PlaneProjection/>
            </Grid.Projection>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.298*" />
                <ColumnDefinition Width="0.602*" />
                <ColumnDefinition Width="0.1*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="35" />
                <RowDefinition Height="35" />
                <RowDefinition Height="35" />
                <RowDefinition Height="35" />
                <RowDefinition Height="35" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <TextBlock Margin="0" TextWrapping="Wrap" Text="父类别：" HorizontalAlignment="Right" VerticalAlignment="Center"/>
            <TextBlock Margin="0" TextWrapping="Wrap" Text="名称：" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center"/>
            <TextBlock Margin="0" TextWrapping="Wrap" Text="备注：" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center"/>
            <ComboBox Grid.Column="1" Margin="0" IsDropDownOpen="True" VerticalAlignment="Center"/>
            <TextBox Grid.Column="1" Margin="0" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Center"/>
            <TextBox Grid.Column="1" Grid.Row="2" Grid.RowSpan="2" TextWrapping="Wrap" Text="TextBox" AcceptsReturn="True" Margin="0,10,0,0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
            <Button Content="保存" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,80,0" Grid.Row="4" VerticalAlignment="Center" Width="50"/>
            <Button Content="取消" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,10,0" Grid.Row="4" VerticalAlignment="Center" Width="50"/>
            <!--<toolkit:BusyIndicator Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2" Height="50" HorizontalAlignment="Left" Margin="109,42,0,0" Name="busyIndicator1" VerticalAlignment="Top" Width="100" />
        <toolkit:HeaderedContentControl Grid.ColumnSpan="2" Grid.RowSpan="2" Height="50" HorizontalAlignment="Left" Margin="129,22,0,0" Name="headeredContentControl1" VerticalAlignment="Top" Width="100" />-->
        </Grid>
    </Border>
</UserControl>
